@extends('admin.layout.index')
@section('title', '用户列表')
@section('header', '用户列表')
@section('con')
<html>
 <head></head>
 <body>
  <div class="panel-body"> 
   <div class="dataTable_wrapper"> 
    <div id="dataTables-example_wrapper" class="dataTables_wrapper form-inline dt-bootstrap no-footer"> 
    <form action="/admin/user/index" method="get">
     <div class="row">
        <div class="col-sm-6">
         <div class="dataTables_length" id="dataTables-example_length">
          <label>显示 
          <select name="num" aria-controls="dataTables-example" class="form-control input-sm">
            <option value="10">10</option>
            <option value="25">25</option>
            <option value="50">50</option>
            <option value="100">100</option>
        </select> 条</label>
         </div>
        </div>
        <div class="col-sm-6">
         <div id="dataTables-example_filter" class="dataTables_filter">
          <label>用户名:<input type="search" name="keyword" class="form-control input-sm" placeholder="" aria-controls="dataTables-example" /></label>
            <button class="btn btn-primary">搜索</button>
         </div>
        </div>
       </div>
    <form>
     <div class="row"> 
      <div class="col-sm-12"> 
       <table id="dataTables-example" class="table table-striped table-bordered table-hover dataTable no-footer" role="grid" aria-describedby="dataTables-example_info"> 
        <thead> 
         <tr role="row"> 
          <th class="sorting_asc" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" style="width: 100px;" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending">ID</th>
          <th class="sorting_asc" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" style="width: 100px;" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending">用户名</th>
          <th class="sorting_asc" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" style="width: 100px;" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending">性别</th>    
          <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" style="width:100px;" aria-label="Browser: activate to sort column ascending">身份</th> 
          <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" style="width: 100px;" aria-label="Engine version: activate to sort column ascending">状态</th>  
         </tr> 
        </thead> 
        <tbody> 
        
         @foreach($user as $k=>$v)
         <tr class="gradeA odd" role="row"> 
          <td class="sorting_1">{{$v->id}}</td>
          <td><a href="/admin/user/cj?id={{$v->id}}&name={{$v->name}}">{{$v->name}}</a></td> 
          <td>{{($v->sex)?'女':'男'}}</td> 
          <td class="center">{{($v->auth)?'管理员':'普通用户'}}</td> 
          <td class="center"><a href="/admin/user/xgzt?id={{$v->id}}&status={{$v->status}}" class="delUser" sid="{{$v->id}}">{{!($v->status)?'关闭':'开启'}}</a></td>
         </tr>
         @endforeach 
        </tbody> 
       </table> 
      </div> 
     </div> 
     <div class="row"> 
      <div class="col-sm-6"> 
      
      </div> 
      <div class="col-sm-6"> 
        {!! $user->appends($all)->render() !!}
      </div> 
     </div> 
    </div> 
   </div>
  </div>
 </body>
</html>
@endsection
@section('js')
 
@endsection
